package com.zhku.orders.model.dto;

import com.zhku.orders.model.po.TtOrdersGoods;
import lombok.Data;
import lombok.ToString;

import java.util.List;


@Data
@ToString
public class AddOrderDto {

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户地址表id
     */
    private String userAddressId;

    /**
     * 总价
     */
    private Float totalPrice;

    /**
     * 订单名称
     */
    private String orderName;

    /**
     * 订单明细json，不可为空
     * [{"goodsId":"","goodsType":"","goodsName":"","goodsPrice":"","goodsDetail":""},{...}]
     */
    private List<TtOrdersGoods> orderDetail;



}
